package api

import (
	"fmt"

	"core/api/controller"

	"github.com/gin-gonic/gin"
)

func API(bus chan interface{}) {
	gin.SetMode(gin.DebugMode)
	r := gin.Default()

	controller.Register(r)

	fmt.Println(bus)
	r.Run(":8081")
}
